<!DOCTYPE html>
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
	xmlns:th="http://www.thymeleaf.org" layout:decorator="common/layout">
<head>
<meta charset="UTF-8" />
<title>后台管理 | 汽车信息</title>
</head>
<body>
	<section layout:fragment="content-header">
		<h1>
			<i class="fa fa-car fa-fw"></i>汽车信息<small></small>
		</h1>
		<ol class="breadcrumb">
			<li><a href="/"><i class="fa fa-dashboard"></i>首页</a></li>
			<li class="active">汽车信息</li>
		</ol>
	</section>
	<section layout:fragment="content">
		<!-- row -->
		<div class="row">
			<div class="col-lg-12">
				<div class="box">
					<div class="box-header with-border">
						<h3 class="box-title">编辑汽车信息</h3>
						<div class="pull-right">
							<button type="button" class="btn btn-default"
								onclick="location.href='cars'">返回</button>
							<button type="button" class="btn btn-info save">保存</button>
						</div>
					</div>
					<!-- /.box-header -->
					<!-- form start -->
					<form class="form-horizontal"
						th:action="@{${car.id} == 0?'/cars/create':'/cars/update/'+${car.id}}"
						id="main-form" method="post" role="form" th:object="${car}">
						<div class="box-body">
							<div class="form-group">
								<label class="col-lg-1 control-label">检索字母</label>
								<div class="col-lg-4">
									<input name="alphabet" class="form-control" readonly="readonly"
										required="required" th:value="*{alphabet}" />
								</div>

								<label class="col-lg-1 control-label">品牌名</label>
								<div class="col-lg-5">
									<input name="brand" class="form-control" readonly="readonly"
										required="required" th:value="*{brand}" />
								</div>
							</div>

							<div class="form-group">
								<label class="col-lg-1 control-label">生产商</label>
								<div class="col-lg-4">
									<input name="manufacturer" class="form-control"
										readonly="readonly" required="required"
										th:value="*{manufacturer}" />
								</div>

								<label class="col-lg-1 control-label">车系</label>
								<div class="col-lg-5">
									<input name="series" class="form-control" readonly="readonly"
										required="required" th:value="*{series}" />
								</div>
							</div>

							<div class="form-group">
								<label class="col-lg-1 control-label">车型名称</label>
								<div class="col-lg-4">
									<input name="name" class="form-control" readonly="readonly"
										required="required" th:value="*{name}" />
								</div>

								<label class="col-lg-1 control-label">简称</label>
								<div class="col-lg-5">
									<input name="sname" class="form-control" required="required"
										th:value="*{sname}" />
								</div>
							</div>

							<!-- <div class="form-group">
								<label class="col-lg-1 control-label">记录有效</label>
								<div class="col-lg-4">
									<input name="valid" class="form-control" readonly="readonly"
										required="required" th:value="*{valid}==0?'有效':'无效'" />
								</div>

								<label class="col-lg-1 control-label">销售状态</label>
								<div class="col-lg-5">
									<input name="status" class="form-control" readonly="readonly"
										required="required" th:value="*{status}==0?'正常':'停售'" />
								</div>
							</div> -->

							<!-- <div class="form-group">
								<label class="col-lg-1 control-label">最低价</label>
								<div class="col-lg-2">
									<input name="minprice" class="form-control" readonly="readonly"
										required="required" th:value="*{minprice}" />
								</div>

								<label class="col-lg-1 control-label">最高价</label>
								<div class="col-lg-2">
									<input name="maxprice" class="form-control" readonly="readonly"
										required="required" th:value="*{maxprice}" />
								</div>

								<label class="col-lg-1 control-label">参考价格</label>
								<div class="col-lg-4">
									<input name="refprice" class="form-control" readonly="readonly"
										required="required" th:value="*{refprice}" />
								</div>
							</div> -->

							<!-- <div class="form-group">
								<label class="col-lg-1 control-label">外饰颜色</label>
								<div class="col-lg-4">
									<input name="outercolor" maxLength="2" class="form-control"
										required="required" th:value="*{outercolor}" />
								</div>

								<label class="col-lg-1 control-label">内饰颜色</label>
								<div class="col-lg-4">
									<input name="innercolor" maxLength="2" class="form-control"
										required="required" th:value="*{innercolor}" />
								</div>
							</div> -->

						</div>
						<!-- /.box-body -->
						<div class="box-footer">
							<div class="pull-right">
								<button type="button" class="btn btn-info save">保存</button>
							</div>
						</div>
					</form>
					<!-- /.end form -->
				</div>
			</div>
		</div>
		<!-- /.row -->
	</section>
	<!-- own js -->
	<section layout:fragment="js">
		<script type="text/javascript" th:src="@{/js/cars/edit.js}"></script>
	</section>
</body>
</html>